package com.situ.springboot.mapper;

import com.situ.springboot.pojo.entity.Service;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ServiceMapper {
    List<Service> selectByPage(int offset, Integer pageSize);

    int selectTotalCount();


    Service selectById(Integer id);

    void update(Service service);

    void add(Service service);

    void deleteById(Integer id);

    void deleteAll(Integer[] ids);

    @Select("select * from service")
    List<Service> selectAll();

    List<Service> selectByContent(String content);
}
